package messengerclient;

public class Settings
{
//TODO: thread-safety
    private static Settings s;
   
    public static Settings instance()
    {
        if (s == null)
            s = new Settings();
        return s;
    }
    
    private Settings()
    {
        port = 9999;
    }

    private int port;

    public int getPort()
    {
        return port;
    }

    public void setPort(int _port)
    {
        port = _port;
    }
}